package cn.libinal.scloud.base.gateway.service;

import org.springframework.security.core.Authentication;

import javax.servlet.http.HttpServletRequest;

/**
 * scloud
 *
 * @author lbb created by 2019/1/23 15:27
 */
public interface PermissionService {
    /**
     * 获取用户权限
     * @param request HttpServletRequest
     * @param authentication 认证
     * @return 权限
     */
    boolean hasPermission(HttpServletRequest request, Authentication authentication);
}
